package com.hoas.distributedlock.core;

public class DisributedLockFactory {

   private static DisributedLockStrategy strategy;

    public static void setStrategy(DisributedLockStrategy strategy) {
        DisributedLockFactory.strategy = strategy;
    }

    public static DisributedLock build() {
        return strategy.create();
    }

}
